// 区域管理相关
import request from '@/utils/request'

// 获取区域列表
export const getAreaList = (params) => request({
  url: '/vm-service/region/search',
  params
})
// 新增区域
export const addArea = (data) => request({
  url: '/vm-service/region',
  method: 'POST',
  data
})
// 修改区域
export const modifyArea = ({ id, regionName, remark }) => request({
  url: `/vm-service/region/${id}`,
  method: 'PUT',
  data: {
    regionName,
    remark
  }
})
// 删除区域
export const delArea = ({ id }) => request({
  url: `/vm-service/region/${id}`,
  method: 'DELETE'

})
// 查看区域详情
export const areaInfo = (id, params) => request({
  url: `/vm-service/region/${id}`,
  method: 'GET',
  params

})
